﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FoneBuddy.LinqModel.Data;

namespace FoneBuddy.LinqModel
{
public partial class FilterMaster
    {
       #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion

        public FilterMaster(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<FilterMaster> GetAllFilter()
        {
            return _dataObject.GetAllFilter();
        }
        public void Create()
        {
            _dataObject.CreateFilter(this);
        }
        public void Delete()
        {
            _dataObject.DeleteFilter(this);
        }
        public void Update()
        {
            _dataObject.UpdateFilter(this);
        }
        public void GetFilterById()
        {
            _dataObject.GetFilterById(this);
        }
        public void GetFilterByName()
        {
            _dataObject.GetFilterByName(this);
        }
    }
}
